﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%
	 Cookie[] cookies = request.getCookies();
	 String loginName="";
	  if(cookies!=null){
		 if(cookies.length>0){
			   for(int i=0;i<cookies.length;i++){
					if("loginName".equals(cookies[i].getName()))
					{
					   loginName=cookies[i].getValue();
					}
				}
		 }
	  }

 %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>系统登录页面</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

<link href="${ctx}/common/system/auth/login.css" rel="stylesheet" type="text/css"/>
<script src="${ctx}/common/system/auth/login.js" type="text/javascript"></script>
</head>

<body onload="checkSessionTimeout('${ctx}');initLoginPage();showMsg('${msg}');" class="loginbg">
<form id="loginForm" action="login!checkValid.action" method="get">

<div class="main">
<div class="top00"></div>
<div class="login00">
  <div class="login001">
   <dl>
    <dt>用户：</dt><dd><input type="text" name="loginName" onfocus="textHandler(this)" value="<%=loginName%>"/></dd>
    <dt>密码：</dt><dd><input type="password" name="password" onfocus="textHandler(this)"/></dd>
   </dl>
   <p><a href="javascript:login()" title="登录" class="dl">登 录</a><a href="javascript:clearLoginForm()" title="取消" class="qx">取 消</a></p>
  </div>
</div>
<div class="foot00"></div>
</div>
</form>
</body>
</html>
